<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/


defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.controller');

class JobBoardController extends JController
{
	/**
	 * Method to show a weblinks view
	 *
	 * @access	public
	 * @since	1.5
	 */
	function display()
	{			
	    global $jbconfig;
		
	    if(JRequest::getVar('action')=='rend_language'){
	    	return rend_language();
	    }
	    
	    if(isset($_SESSION[md5('cheking')])) return ;
	        
	    if(!isset($jbconfig['cache'])) {		    
    	    $jbconfig['cache'] = new JParameter('');
    	}	    
    	
		$cache = new JA_Cache($jbconfig['cache']->get('cache_base', JPATH_SITE.DS.'components'.DS.'com_jajobboard'.DS.'cache'), $jbconfig['cache']->get('cache_time', 5), $jbconfig['cache']->get('caching', true));
				
		if($cache->check_cache()){
			return ;
		}
		parent::display();		
	}	
}
?>